import { accessTypeEnum } from './enum'

// 增加按钮权限添加accessList字段，需要配合RightWrapper组件的accessType阻断使用
export const MENU_LIST: firstMenuitemProps[] = [
  {
    label: '首页',
    key: 0,
    push: '/Home',
    children: [],
  },
  // 台账管理
  {
    label: '台账管理',
    key: 1,
    push: '/deviceManagement',
    children: [
      {
        label: '摄像头台账',
        key: 11,
        push: '/deviceManagement/CameraManagement',
        access: accessTypeEnum.CameraManagement,
      },
      {
        label: '机器人台账',
        key: 12,
        push: '/deviceManagement/RobotManagement',
        access: accessTypeEnum.RobotManagement,
      },
    ],
  },
]

// 处理不显示的一级路由的key
export const ignoreFirstLevelKey = [9]
